//
//  FSBaseModel.m
//  Trade
//
//  Created by 刘沿 on 16/4/7.
//  Copyright © 2016年 刘沿. All rights reserved.
//

#import "FSBaseModel.h"

@implementation FSBaseModel

-(instancetype)initWitDictionary:(NSDictionary *)dict{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

+ (instancetype)loginWithDict:(NSDictionary *)dict;
{
    
    return [[self alloc] initWithDictionary:dict];
    
}


+(NSMutableArray*)dataWithArray:(NSArray*)dataArray;{
    
    NSMutableArray * tempArray = [NSMutableArray array];
    for (id dict in dataArray) {
        [tempArray addObject:[[self alloc] initWitDictionary:dict]];
    }
    
    return tempArray;
}




@end
